package com.example.myliwu.fragment;

import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.myliwu.CourseAdapter;
import com.example.myliwu.R;

import java.util.ArrayList;
import java.util.List;

/**
 * 社区页面
 */

public class ShequFragment extends BaseFragment {


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        mcontext = getActivity();
        View view = inflater.inflate(R.layout.fragment_shequ, container, false);
        return view;
        //加载动画
        //        ImageView imageView = view.findViewById(R.id.img_fish);
//        Drawable drawable = imageView.getDrawable();
//        AnimationDrawable fishAni = (AnimationDrawable) drawable;
//        fishAni.start();

//        ListView listView= view.findViewById(R.id.listView_shequ);
//
//        List<String> mockList = new ArrayList<>();
//        for (int i=0;i<100;i++){
//            mockList.add("这是第"+i+"数据");
//        }
//        listView.setAdapter(new CourseAdapter(mockList,mcontext));



    }

}